package com.tech.common

import scala.collection.mutable.ArrayBuffer

object GlobalValue {

  //时区
  val timezone = "GMT+8:00"
  //    val timezone = "GMT"

  //群组数据临时存放路径
  //  val spark_local_dir = "/data/tmp"
  val spark_local_dir = "/mnt/resource/tmp"

  //aesKey
  val aesKey = "3776d97bbdfb4cec8aac8d4fbecf381e"

  //tencent saas singapore
  //    val url_mysql = ""
  //    val url_presto = "jdbc:presto://10.0.0.16:9000/kudu/default?user=hadoop"
  //    val project = "90eecd53a3c2438b883e9df14c7b2894"
  //    val customerNodeTopic: String = "customer_node_" + project
  //    val customerNodeGroupTopic: String = "customer_node_group_" + project
  //    val dynamicCustomerTopic: String = "dynamic_customer_" + project
  //    val broker = "10.0.1.16:9092"
  //    var kuduMaster = "10.0.0.16:7051,10.0.0.11:7051,10.0.0.13:7051"

  //tencent saas dev
  //  val url_mysql = ""
  //  val url_presto = "jdbc:presto://10.0.2.14:9000/kudu/default?user=hadoop"
  //  val project = "41e98c7e7b434c828480593fa55da3be"
  //  val customerNodeTopic = "customer_node_41e98c7e7b434c828480593fa55da3be"
  //  val customerNodeGroupTopic = "customer_node_group_41e98c7e7b434c828480593fa55da3be"
  //  val dynamicCustomerTopic = "dynamic_customer_41e98c7e7b434c828480593fa55da3be"
  //  val broker = "10.0.1.6:9092"
  //  var kuduMaster = "10.0.2.14:7051,10.0.2.6:7051,10.0.2.5:7051,10.0.2.7:7051,10.0.2.2:7051"

  //uat d365
  //    val url_mysql = "jdbc:mysql://52.131.249.221:63306/shuat_socialhub?user=shuat&password=P@ssw0rd`468&useSSL=false"
  //    val url_presto = "jdbc:presto://10.1.6.201:8222/kudu/default?user=hadoop"
  //    val project = "uat-st"
  //    val customerNodeTopic = "customer_node_d365"
  //    val customerNodeGroupTopic = "customer_node_group_d365"
  //    val dynamicCustomerTopic = "dynamic_customer_d365"
  //    val broker = "dev-cdp-03:9092,dev-cdp-04:9092"
  //    val kuduMaster = "dev-cdp-02,dev-cdp-03,dev-cdp-04"

  //uat vans
  //    val url_mysql = "jdbc:mysql://52.131.249.221:63306/shuat_socialhub?user=shuat&password=P@ssw0rd`468&useSSL=false"
  //    val url_presto = "jdbc:presto://10.1.6.201:8222/kudu/default?user=hadoop"
  //    val project = "vanscn"
  //    val customerNodeTopic = "customer_node_vans"
  //    val dynamicCustomerTopic = "dynamic_customer_vans"
  //    val broker = "dev-cdp-03:9092,dev-cdp-04:9092"
  //    val kuduMaster = "dev-cdp-02,dev-cdp-03,dev-cdp-04"

  //tnf uat
  //    val url_mysql = ""
  //    val url_presto = "jdbc:presto://10.11.10.6:8222/kudu/default?user=hadoop"
  //    val project = "tnfst"
  //    val customerNodeTopic = "customer_node"
  //    val customerNodeGroupTopic = "customer_node_group"
  //    val dynamicCustomerTopic = "dynamic_customer"
  //    val broker = "vf-uat-pdc-07:9092"
  //    val kuduMaster = "vf-uat-pdc-09,vf-uat-pdc-10,vf-uat-pdc-11"

  //tnf uat hk
  //  val url_mysql = ""
  //  val url_presto = "jdbc:presto://10.1.0.7:8222/kudu/default?user=hadoop"
  //  val project = "tnf-hk-uat"
  //  val customerNodeTopic: String = "customer_node"
  //  val customerNodeGroupTopic: String = "customer_node_group"
  //  val dynamicCustomerTopic: String = "dynamic_customer"
  //  val broker = "tnf-uat-hktw-cdh10:9092"
  //  val kuduMaster = "tnf-uat-hktw-cdh02,tnf-uat-hktw-cdh03,tnf-uat-hktw-cdh04"

  //tnf uat tw
  //  val url_mysql = ""
  //  val url_presto = "jdbc:presto://10.1.0.7:8222/kudu/default?user=hadoop"
  //  val project = "tnf-tw-uat"
  //  val customerNodeTopic: String = "customer_node"
  //  val customerNodeGroupTopic: String = "customer_node_group"
  //  val dynamicCustomerTopic: String = "dynamic_customer"
  //  val broker = "tnf-uat-hktw-cdh10:9092"
  //  val kuduMaster = "tnf-uat-hktw-cdh02,tnf-uat-hktw-cdh03,tnf-uat-hktw-cdh04"

  //tnf prod
  val url_mysql = ""
  val url_presto = "jdbc:presto://10.100.20.6:8222/kudu/default?user=hadoop"
  val project = "tnfst"
  val customerNodeTopic = "customer_node"
  val customerNodeGroupTopic = "customer_node_group"
  val dynamicCustomerTopic = "dynamic_customer"
  val broker = "vf-prod-pdc-07:9092,vf-prod-pdc-08:9092"
  val kuduMaster = "vf-prod-pdc-09,vf-prod-pdc-10,vf-prod-pdc-11"


  //事件类型编码Map
  //uat d365
  //  val eventMap = Map(
  //    "$payment" -> "支付事件",
  //    "$order" -> "交易事件",
  //    "$binding" -> "绑定事件",
  //    "$update" -> "信息修改事件",
  //    "$getcoupon" -> "领取优惠券事件",
  //    "$redeemcoupon" -> "使用优惠券事件",
  //    "$membertier" -> "等级变更事件",
  //    "$signup" -> "注册事件",
  //    "$behavior" -> "行为事件",
  //    "$signoff" -> "注销事件",
  //    "$uppointcount" -> "积分账户变动事件",
  //    "$uppointrecord" -> "积分记录变动事件"
  //  )

  //vans
  //    val eventMap = Map(
  //      "$update" -> "信息变更事件",
  //      "$uppoint" -> "积分变动事件",
  //      "$order" -> "交易事件",
  //      "$payment" -> "支付事件",
  //      "$tile" -> "Tile事件",
  //      "$coupon" -> "优惠券变动事件",
  //      "$signup" -> "注册事件",
  //      "$binding" -> "绑定事件"
  //    )


  //tnf
  val eventMap = Map(
    "$signup" -> "注册事件",
    "$binding" -> "绑定事件",
    "$update" -> "信息变更事件",
    "$uppointcount" -> "积分账户变动事件",
    "$uppointrecord" -> "积分记录变动事件",
    "$order" -> "交易事件",
    "$focus" -> "关注The North Face公众号事件",
    "$membertier" -> "等级变更事件",
    "$firstbuy" -> "首购事件",
    "$rebuy" -> "复购事件",
    "$coupon" -> "优惠券变动事件",
    "$perfectInfo" -> "首次完善资料事件"
  )


}
